package principle.facade;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class DVDPlayer {
    //单例模式-饿汉式
    private static DVDPlayer instance = new DVDPlayer();
    public static DVDPlayer getInstance() { return instance; }
    public void play(){ System.out.println("dvd play"); }
    public void on(){ System.out.println("dvd on"); }
    public void off(){ System.out.println("dvd off"); }
    public void pause(){ System.out.println("dvd pause"); }
}
